package model.icmpv6;

import header.ICMPv6Defines;

import java.util.ArrayList;
import java.util.List;

public abstract class ICMPv6Option {
	private int type;
	private int length;
	
	/*
	 *====================================
	 * Constructors
	 * ===================================
	 */
	public ICMPv6Option() {}

	public ICMPv6Option(int type, int length) {
		this.type = type;
		this.length = length;
	}

	/*
	 *====================================
	 * Getter and setter
	 * ===================================
	 */
	public int getType() {
		return type;
	}

	public void setType(int type) {
		this.type = type;
	}

	public int getLength() {
		return length;
	}

	public void setLength(int length) {
		this.length = length;
	}

	/*
	 *====================================
	 * Abstract functions
	 * ===================================
	 */
	public List<Integer> makeOption(){
		List<Integer> retList = new ArrayList<>();
		retList.add(type);
		retList.add(length);
		return retList;
	}
	
	
	/*
	 *====================================
	 * Normal functions
	 * ===================================
	 */
}
